package com.sui.bigdata.sml.web.dto;

import com.alibaba.fastjson.JSON;
import com.sui.bigdata.sml.web.repository.model.FieldInfo;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import java.util.List;

/**
 * @author songhaicheng
 * @date 2019/12/16 17:08
 * @description
 * @reviewer
 */
@Data
@Accessors(chain = true)
public class ModelDTO {

    private Long id;
    private String token;
    @NotBlank(message = "路径不能为空")
    private String hdfsPath;
    @NotBlank(message = "模型类型不能为空")
    private String modelType;
    private Integer version;
    private String creator;
    private String source;
    private String description;
    private Boolean online;
    private List<FieldInfo> fields;
    private String createTime;
    private String updateTime;

    @Override
    public String toString() {
        return JSON.toJSONString(this);
    }

}
